package org.jeecg.modules.demo.dz.service;

import org.jeecg.modules.demo.dz.entity.DzMaterialSkuCart;
import org.jeecg.modules.demo.dz.entity.DzMaterialCart;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 购物清单
 * @Author: jeecg-boot
 * @Date:   2024-11-26
 * @Version: V1.0
 */
public interface IDzMaterialCartService extends IService<DzMaterialCart> {

	/**
	 * 添加一对多
	 *
	 * @param dzMaterialCart
	 * @param dzMaterialSkuCartList
	 */
	public void saveMain(DzMaterialCart dzMaterialCart,List<DzMaterialSkuCart> dzMaterialSkuCartList) ;
	
	/**
	 * 修改一对多
	 *
   * @param dzMaterialCart
   * @param dzMaterialSkuCartList
	 */
	public void updateMain(DzMaterialCart dzMaterialCart,List<DzMaterialSkuCart> dzMaterialSkuCartList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
